﻿using DataStructure;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace DataStructure.Test
{
    
    
    /// <summary>
    ///This is a test class for SqListTest and is intended
    ///to contain all SqListTest Unit Tests
    ///</summary>
    [TestClass()]
    public class SqListTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SqList`1 Constructor
        ///</summary>
        public void SqListConstructorTestHelper<T>()
        {
            int capacity = 0; // TODO: Initialize to an appropriate value
            SqList<T> target = new SqList<T>(capacity);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void SqListConstructorTest()
        {
            SqListConstructorTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for SqList`1 Constructor
        ///</summary>
        public void SqListConstructorTest1Helper<T>()
        {
            SqList<T> target = new SqList<T>();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void SqListConstructorTest1()
        {
            SqListConstructorTest1Helper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Insert
        ///</summary>
        public void InsertTestHelper<T>()
        {
            SqList<T> target = new SqList<T>(); // TODO: Initialize to an appropriate value
            int pos = 0; // TODO: Initialize to an appropriate value
            T e = default(T); // TODO: Initialize to an appropriate value
            target.Insert(pos, e);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void InsertTest()
        {
            InsertTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for MergeList
        ///</summary>
        public void MergeListTestHelper<T, T1>()
        {
            SqList<T> a = null; // TODO: Initialize to an appropriate value
            SqList<T> b = null; // TODO: Initialize to an appropriate value
            SqList<T> expected = null; // TODO: Initialize to an appropriate value
            SqList<T> actual;
            actual = SqList<T>.MergeList<T>(a, b);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void MergeListTest()
        {
            MergeListTestHelper<GenericParameterHelper, GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Remove
        ///</summary>
        public void RemoveTestHelper<T>()
        {
            SqList<T> target = new SqList<T>(); // TODO: Initialize to an appropriate value
            int index = 0; // TODO: Initialize to an appropriate value
            T e = default(T); // TODO: Initialize to an appropriate value
            target.Remove(index, e);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void RemoveTest()
        {
            RemoveTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Union
        ///</summary>
        public void UnionTestHelper<T, T1>()
        {
            SqList<T> a = null; // TODO: Initialize to an appropriate value
            SqList<T> b = null; // TODO: Initialize to an appropriate value
            SqList<T>.Union<T>(a, b);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void UnionTest()
        {
            UnionTestHelper<GenericParameterHelper, GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Capacity
        ///</summary>
        public void CapacityTestHelper<T>()
        {
            SqList<T> target = new SqList<T>(); // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Capacity;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void CapacityTest()
        {
            CapacityTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Item
        ///</summary>
        public void ItemTestHelper<T>()
        {
            SqList<T> target = new SqList<T>(); // TODO: Initialize to an appropriate value
            int index = 0; // TODO: Initialize to an appropriate value
            T actual;
            actual = target[index];
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void ItemTest()
        {
            ItemTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Length
        ///</summary>
        public void LengthTestHelper<T>()
        {
            SqList<T> target = new SqList<T>(); // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Length;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void LengthTest()
        {
            LengthTestHelper<GenericParameterHelper>();
        }
    }
}
